package org.hnxxxy.ebms.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import org.hnxxxy.ebms.common.Result;
import org.hnxxxy.ebms.pojo.Plan;
import com.baomidou.mybatisplus.extension.service.IService;
import org.hnxxxy.ebms.vo.PlanVo;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author WANGWEI
 * @since 2021-06-10
 */
public interface PlanService extends IService<Plan> {

    /**
     * 增加招生计划
     * @param plan
     * @return
     */
    Result<String> add(Plan plan);

    /**
     * 招生学生查询招生计划
     * @return
     */
    Result<Plan> getPlans();

    Result<IPage<PlanVo>> getTeaPlans(int page);

    Result<IPage<PlanVo>> getTeaPlanByName(String name,int page);
}
